<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>文本对齐方式</title>
		<style type="text/css">
			.p1{text-align: left;}
			.p2{text-align: center;}
			.p3{text-align: right;}
			.p4{text-align: justify;}
		</style>
	</head>
	<body>
		<p class="p1">文本水平左对齐</p>
		<p class="p2">文本水平居中对齐</p>
		<p class="p3">文本水平右对齐</p>
		<p class="p4">文本水平两端对齐fhtehjdfbgfhgj</p>
	</body>
</html>
